<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Percepio Trace Recorder: include/trcEvent.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Percepio Trace Recorder<span id="projectnumber">&#160;v4.8.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('trcEvent_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">trcEvent.h</div></div>
</div><!--header-->
<div class="contents">
<a href="trcEvent_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">* Percepio Trace Recorder for Tracealyzer v4.8.0</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">* Copyright 2023 Percepio AB</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment">* www.percepio.com</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment">*</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment">* SPDX-License-Identifier: Apache-2.0</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment">*/</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#ifndef TRC_EVENT_H</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#define TRC_EVENT_H</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#if (TRC_USE_TRACEALYZER_RECORDER == 1)</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#if (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING)</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#include &lt;trcTypes.h&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">#define TRC_EVENT_SET_PARAM_COUNT(id, n) ((uint16_t)(((uint16_t)(id)) | ((((uint16_t)(n)) &amp; 0xF) &lt;&lt; 12)))</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#define TRC_EVENT_GET_PARAM_COUNT(id) (((id) &gt;&gt; 12u) &amp; 0xFU)</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#if (TRC_CFG_CORE_COUNT &gt; 1)</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="preprocessor">#define TRC_EVENT_SET_EVENT_COUNT(c)  ((uint16_t)(((TRC_CFG_GET_CURRENT_CORE() &amp; 0xF) &lt;&lt; 12) | ((uint16_t)(c) &amp; 0xFFF)))</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="preprocessor">#define TRC_EVENT_SET_EVENT_COUNT(c) ((uint16_t)(c))</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span><span class="preprocessor">#define SET_BASE_EVENT_DATA(pxEvent, eventId, paramCount, eventCount) \</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span><span class="preprocessor">    ( \</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="preprocessor">        (pxEvent)-&gt;EventID = TRC_EVENT_SET_PARAM_COUNT(eventId, paramCount), \</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="preprocessor">        (pxEvent)-&gt;EventCount = TRC_EVENT_SET_EVENT_COUNT(eventCount), \</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span><span class="preprocessor">        xTraceTimestampGet(&amp;(pxEvent)-&gt;TS) \</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span><span class="preprocessor">    )</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span><span class="preprocessor">#define RESET_EVENT_DATA(p) \</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span><span class="preprocessor">    ( \</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span><span class="preprocessor">        (p)-&gt;pvBlob = 0, \</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="preprocessor">        (p)-&gt;size = 0, \</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="preprocessor">        (p)-&gt;offset = 0 \</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span><span class="preprocessor">    )</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span><span class="preprocessor">#define TRC_EVENT_GET_SIZE(pvAddress, puiSize) (*(uint32_t*)(puiSize) = sizeof(TraceEvent0_t) + (TRC_EVENT_GET_PARAM_COUNT(((TraceEvent0_t*)(pvAddress))-&gt;EventID)) * sizeof(TraceBaseType_t), TRC_SUCCESS)</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="preprocessor">#define TRC_EVENT_GET_RAW_DATA(xEventHandle, uiOffset, uiSize, ppvData) ((void)(uiSize), *(void**)(ppvData) = (void*)&amp;((uint8_t*)((TraceEventData_t*)(xEventHandle))-&gt;pvBlob)[uiOffset], TRC_SUCCESS)</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span><span class="preprocessor">#define TRC_EVENT_GET_PAYLOAD(xEventHandle, uiOffset, uiSize, ppvData) ((void)(uiSize), *(void**)(ppvData) = (void*)&amp;((uint8_t*)((TraceEventData_t*)(xEventHandle))-&gt;pvBlob)[sizeof(TraceEvent0_t) + (uiOffset)], TRC_SUCCESS)</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span><span class="preprocessor">#define TRC_EVENT_PAYLOAD_REMAINING(xEventHandle, puiValue) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(uint32_t*)(puiValue) = ((TraceEventData_t*)(xEventHandle))-&gt;size - ((TraceEventData_t*)(xEventHandle))-&gt;offset, TRC_SUCCESS)</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span><span class="preprocessor">#define TRC_EVENT_PAYLOAD_USED(xEventHandle, puiValue) (*(uint32_t*)(puiValue) = ((TraceEventData_t*)(xEventHandle))-&gt;offset - sizeof(TraceEvent0_t), TRC_SUCCESS)</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span><span class="preprocessor">#define TRC_EVENT_PAYLOAD_SIZE(xEventHandle, puiValue) (*(uint32_t*)(puiValue) = ((TraceEventData_t*)(xEventHandle))-&gt;size - sizeof(TraceEvent0_t), TRC_SUCCESS)</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span><span class="preprocessor">#define TRC_EVENT_ADD_POINTER(xEventHandle, value) \</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span><span class="preprocessor">    TRC_COMMA_EXPR_TO_STATEMENT_EXPR_3( \</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span><span class="preprocessor">        ((void**)((TraceEventData_t*)(xEventHandle))-&gt;pvBlob)[((TraceEventData_t*)(xEventHandle))-&gt;offset / sizeof(void*)] = (value), \</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span><span class="preprocessor">        ((TraceEventData_t*)(xEventHandle))-&gt;offset += sizeof(void*), \</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span><span class="preprocessor">        TRC_SUCCESS \</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span><span class="preprocessor">    )</span></div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span><span class="preprocessor">#define TRC_EVENT_ADD_UNSIGNED_BASE_TYPE(xEventHandle, value) \</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span><span class="preprocessor">    TRC_COMMA_EXPR_TO_STATEMENT_EXPR_3( \</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span><span class="preprocessor">        ((TraceUnsignedBaseType_t*)((TraceEventData_t*)(xEventHandle))-&gt;pvBlob)[((TraceEventData_t*)(xEventHandle))-&gt;offset / sizeof(TraceUnsignedBaseType_t)] = (value), \</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span><span class="preprocessor">        ((TraceEventData_t*)(xEventHandle))-&gt;offset += sizeof(TraceUnsignedBaseType_t), \</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span><span class="preprocessor">        TRC_SUCCESS \</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span><span class="preprocessor">    )</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span><span class="preprocessor">#define TRC_EVENT_ADD_32(xEventHandle, value) \</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span><span class="preprocessor">    TRC_COMMA_EXPR_TO_STATEMENT_EXPR_3( \</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span><span class="preprocessor">        ((uint32_t*)((TraceEventData_t*)(xEventHandle))-&gt;pvBlob)[((TraceEventData_t*)(xEventHandle))-&gt;offset / sizeof(uint32_t)] = (value), \</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span><span class="preprocessor">        ((TraceEventData_t*)(xEventHandle))-&gt;offset += sizeof(uint32_t), \</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span><span class="preprocessor">        TRC_SUCCESS \</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span><span class="preprocessor">    )</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span><span class="preprocessor">#define TRC_EVENT_ADD_16(xEventHandle, value) \</span></div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span><span class="preprocessor">    TRC_COMMA_EXPR_TO_STATEMENT_EXPR_3( \</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span><span class="preprocessor">        ((uint16_t*)((TraceEventData_t*)(xEventHandle))-&gt;pvBlob)[((TraceEventData_t*)(xEventHandle))-&gt;offset / sizeof(uint16_t)] = (value), \</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span><span class="preprocessor">        ((TraceEventData_t*)(xEventHandle))-&gt;offset += sizeof(uint16_t), \</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span><span class="preprocessor">        TRC_SUCCESS \</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span><span class="preprocessor">    )</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span><span class="preprocessor">#define TRC_EVENT_ADD_8(xEventHandle, value) \</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span><span class="preprocessor">    TRC_COMMA_EXPR_TO_STATEMENT_EXPR_3( \</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span><span class="preprocessor">        ((uint8_t*)((TraceEventData_t*)(xEventHandle))-&gt;pvBlob)[((TraceEventData_t*)(xEventHandle))-&gt;offset / sizeof(uint8_t)] = (value), \</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span><span class="preprocessor">        ((TraceEventData_t*)(xEventHandle))-&gt;offset += sizeof(uint8_t), \</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span><span class="preprocessor">        TRC_SUCCESS \</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span><span class="preprocessor">    )</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span> </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span><span class="preprocessor">#define TRC_EVENT_BEGIN_OFFLINE(uiEventCode, uiPayloadSize, pxEventHandle) \</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span><span class="preprocessor">    ( \</span></div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span><span class="preprocessor">        (xTraceEventBeginRawOffline((uint32_t)(sizeof(TraceEvent0_t) + (uiPayloadSize)), pxEventHandle)) == TRC_SUCCESS ? \</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span><span class="preprocessor">        ( \</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span><span class="preprocessor">            SET_BASE_EVENT_DATA((TraceEvent0_t*)(((TraceEventData_t*)*(pxEventHandle))-&gt;pvBlob), \</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span><span class="preprocessor">                uiEventCode, \</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span><span class="preprocessor">                (((TraceEventData_t*)*(pxEventHandle))-&gt;size - sizeof(TraceEvent0_t)) / sizeof(TraceBaseType_t), \</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span><span class="preprocessor">                pxTraceEventDataTable-&gt;coreEventData[TRC_CFG_GET_CURRENT_CORE()].eventCounter), \</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span><span class="preprocessor">            ((TraceEventData_t*)*(pxEventHandle))-&gt;offset += sizeof(TraceEvent0_t), \</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span><span class="preprocessor">            TRC_SUCCESS \</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span><span class="preprocessor">        ) : TRC_FAIL \</span></div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span><span class="preprocessor">    )</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span><span class="keyword">typedef</span> <span class="keyword">struct </span>{    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>    uint16_t EventID;       </div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>    uint16_t EventCount;    </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>    uint32_t TS;            </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>} TraceEvent0_t;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span><span class="keyword">typedef</span> <span class="keyword">struct </span>{    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>    uint16_t EventID;                       </div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span>    uint16_t EventCount;                    </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>    uint32_t TS;                            </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span>    TraceUnsignedBaseType_t uxParams[1];    </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span>} TraceEvent1_t;</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span><span class="keyword">typedef</span> <span class="keyword">struct </span>{    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>    uint16_t EventID;                       </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span>    uint16_t EventCount;                    </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>    uint32_t TS;                            </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>    TraceUnsignedBaseType_t uxParams[2];    </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>} TraceEvent2_t;</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span> </div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span><span class="keyword">typedef</span> <span class="keyword">struct </span>{    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span>    uint16_t EventID;                       </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span>    uint16_t EventCount;                    </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>    uint32_t TS;                            </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>    TraceUnsignedBaseType_t uxParams[3];    </div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>} TraceEvent3_t;</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span> </div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span><span class="keyword">typedef</span> <span class="keyword">struct </span>{    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>    uint16_t EventID;                       </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>    uint16_t EventCount;                    </div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span>    uint32_t TS;                            </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span>    TraceUnsignedBaseType_t uxParams[4];    </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>} TraceEvent4_t;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span> </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span><span class="keyword">typedef</span> <span class="keyword">struct </span>{    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>    uint16_t EventID;                       </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>    uint16_t EventCount;                    </div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>    uint32_t TS;                            </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>    TraceUnsignedBaseType_t uxParams[5];    </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>} TraceEvent5_t;</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span><span class="keyword">typedef</span> <span class="keyword">struct </span>{    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span>    uint16_t EventID;                       </div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span>    uint16_t EventCount;                    </div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>    uint32_t TS;                            </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>    TraceUnsignedBaseType_t uxParams[6];    </div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span>} TraceEvent6_t;</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span> </div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span><span class="keyword">typedef</span> <span class="keyword">struct </span>{    <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span>    uint16_t EventID;                       </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>    uint16_t EventCount;                    </div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span>    uint32_t TS;                            </div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span>    TraceUnsignedBaseType_t uxParams[7];    </div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>} TraceEvent7_t;</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span> </div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span><span class="keyword">typedef</span> <span class="keyword">struct </span>TraceEventData   <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span>{</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span>    <span class="keywordtype">void</span>* pvBlob;       </div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>    uint32_t size;      </div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>    uint32_t offset;    </div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>} TraceEventData_t;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span> </div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span><span class="keyword">typedef</span> <span class="keyword">struct </span>TraceCoreEventData   <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno">  259</span>{</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span>    TraceEventData_t eventData[(TRC_CFG_MAX_ISR_NESTING)+1];    <span class="comment">/* aligned */</span></div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>    uint32_t eventCounter;                                      </div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span>    uint32_t reserved;                                          <span class="comment">/* alignment */</span></div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>    TRACE_ALLOC_CRITICAL_SECTION()</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>} TraceCoreEventData_t;</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span> </div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span><span class="keyword">typedef</span> <span class="keyword">struct </span>TraceEventDataTable  <span class="comment">/* Aligned */</span></div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span>{</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span>    TraceCoreEventData_t coreEventData[TRC_CFG_CORE_COUNT]; </div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span>} TraceEventDataTable_t;</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span> </div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span><span class="keyword">extern</span> TraceEventDataTable_t* pxTraceEventDataTable;</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span> </div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span>traceResult xTraceEventInitialize(TraceEventDataTable_t* pxBuffer);</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span> </div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#gaf8b45ef0660e9b133d74112710b2f8e9">  296</a></span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#ga3d104209d01e4e1ac2fce7a1c7ebfa69">xTraceEventGetSize</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* <span class="keyword">const</span> pvAddress, uint32_t* puiSize);</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span> </div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span>traceResult <a class="code hl_function" href="group__trace__event__apis.html#ga63f12da033faf0f4de4ef2755d73b308">xTraceEventCreate0</a>(uint32_t uiEventCode);</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span> </div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span>traceResult <a class="code hl_function" href="group__trace__event__apis.html#ga676dd9f79556a3343072b14fac51af1d">xTraceEventCreate1</a>(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1);</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span> </div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span>traceResult <a class="code hl_function" href="group__trace__event__apis.html#ga5fcbd638f23ebbe7d9a4447d0338beca">xTraceEventCreate2</a>(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2);</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span> </div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span>traceResult <a class="code hl_function" href="group__trace__event__apis.html#gad64822d442e36ad8b008462994442e11">xTraceEventCreate3</a>(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2, TraceUnsignedBaseType_t uxParam3);</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span> </div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno">  356</span>traceResult <a class="code hl_function" href="group__trace__event__apis.html#gaadf63a13e25292a1c96330dae5e520b6">xTraceEventCreate4</a>(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2, TraceUnsignedBaseType_t uxParam3, TraceUnsignedBaseType_t uxParam4);</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno">  357</span> </div>
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno">  371</span>traceResult <a class="code hl_function" href="group__trace__event__apis.html#gaebde2bb91d01e7cc4e0c1adac58d46c4">xTraceEventCreate5</a>(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2, TraceUnsignedBaseType_t uxParam3, TraceUnsignedBaseType_t uxParam4, TraceUnsignedBaseType_t uxParam5);</div>
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno">  372</span> </div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno">  387</span>traceResult <a class="code hl_function" href="group__trace__event__apis.html#ga7c11b915f0ac18234c3bd2dd7be8610a">xTraceEventCreate6</a>(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2, TraceUnsignedBaseType_t uxParam3, TraceUnsignedBaseType_t uxParam4, TraceUnsignedBaseType_t uxParam5, TraceUnsignedBaseType_t uxParam6);</div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span> </div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno">  401</span>traceResult xTraceEventBeginRawOffline(uint32_t uiSize, TraceEventHandle_t* pxEventHandle);</div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno">  402</span> </div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno">  415</span>traceResult xTraceEventBeginRawOfflineBlocking(uint32_t uiSize, TraceEventHandle_t* pxEventHandle);</div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno">  416</span> </div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno">  429</span><span class="preprocessor">#define xTraceEventBeginOffline TRC_EVENT_BEGIN_OFFLINE</span></div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno">  430</span> </div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#gac506caaa70d385e64cd0e4fa2ad80a04">  443</a></span><span class="preprocessor">#define xTraceEventBegin(uiEventCode, uiTotalPayloadSize, pxEventHandle) \</span></div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span><span class="preprocessor">    (xTraceIsRecorderEnabled() ? xTraceEventBeginOffline(uiEventCode, uiTotalPayloadSize, pxEventHandle) : TRC_FAIL)</span></div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno">  445</span> </div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span>traceResult xTraceEventEndOffline(TraceEventHandle_t xEventHandle);</div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span> </div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno">  469</span>traceResult xTraceEventEndOfflineBlocking(TraceEventHandle_t xEventHandle);</div>
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno">  470</span> </div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#ga3e4d4ace59b52e5c2e80d34b40329917">  482</a></span><span class="preprocessor">#define xTraceEventEnd(xEventHandle) \</span></div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span><span class="preprocessor">    (!xTraceIsRecorderEnabled() ? TRC_FAIL : xTraceEventEndOffline(xEventHandle))</span></div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno">  484</span> </div>
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno">  495</span>traceResult <a class="code hl_function" href="group__trace__event__apis.html#ga112f4b8cbcbe510c9d07db9b90dc620c">xTraceEventAddData</a>(TraceEventHandle_t xEventHandle, <span class="keyword">const</span> TraceUnsignedBaseType_t* <span class="keyword">const</span> puxData, TraceUnsignedBaseType_t uxSize);</div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span> </div>
<div class="line"><a id="l00507" name="l00507"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#gacd2cdde9951fe313cec11003a4fe203f">  507</a></span><span class="preprocessor">#define xTraceEventAddString(xEventHandle, szString, uiLength) xTraceEventAddData(xEventHandle, (TraceUnsignedBaseType_t*)(szString), (((uiLength) + (sizeof(TraceUnsignedBaseType_t) - 1)) / sizeof(TraceUnsignedBaseType_t)))</span></div>
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno">  508</span> </div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno">  509</span><span class="preprocessor">#if ((TRC_CFG_USE_TRACE_ASSERT) == 1)</span></div>
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno">  510</span> </div>
<div class="line"><a id="l00525" name="l00525"></a><span class="lineno">  525</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#ga55e1fd2058f3507101ac46238cfe350d">xTraceEventGetRawData</a>(TraceEventHandle_t xEventHandle, uint32_t uiOffset, uint32_t uiSize, <span class="keywordtype">void</span>** ppvData);</div>
<div class="line"><a id="l00526" name="l00526"></a><span class="lineno">  526</span> </div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno">  541</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#gae0399574efecfbcdb1d92aa176c597f4">xTraceEventGetPayload</a>(<span class="keyword">const</span> TraceEventHandle_t xEventHandle, uint32_t uiOffset, uint32_t uiSize, <span class="keywordtype">void</span>** ppvData);</div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno">  542</span> </div>
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno">  552</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#gac2fe59add1d55f013879ee7d88503f25">xTraceEventPayloadRemaining</a>(<span class="keyword">const</span> TraceEventHandle_t xEventHandle, uint32_t* puiValue);</div>
<div class="line"><a id="l00553" name="l00553"></a><span class="lineno">  553</span> </div>
<div class="line"><a id="l00563" name="l00563"></a><span class="lineno">  563</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#ga7664fb00364a4a1165dc23074ef698bc">xTraceEventPayloadUsed</a>(TraceEventHandle_t xEventHandle, uint32_t* puiValue);</div>
<div class="line"><a id="l00564" name="l00564"></a><span class="lineno">  564</span> </div>
<div class="line"><a id="l00574" name="l00574"></a><span class="lineno">  574</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#gaf49b771de784ae6be526dcd1b851d77e">xTraceEventPayloadSize</a>(TraceEventHandle_t xEventHandle, uint32_t* puiValue);</div>
<div class="line"><a id="l00575" name="l00575"></a><span class="lineno">  575</span> </div>
<div class="line"><a id="l00585" name="l00585"></a><span class="lineno">  585</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#ga441b595058d45b79be4fe6e7ea4f1507">xTraceEventAddUnsignedBaseType</a>(TraceEventHandle_t xEventHandle, TraceUnsignedBaseType_t uxValue);</div>
<div class="line"><a id="l00586" name="l00586"></a><span class="lineno">  586</span> </div>
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno">  596</span>traceResult xTraceEventAddPointer(TraceEventHandle_t xEventHandle, <span class="keywordtype">void</span> *pvAddress);</div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno">  597</span> </div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno">  607</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#ga12fc28f1cd94b5167e0c1c541e2bc123">xTraceEventAdd32</a>(TraceEventHandle_t xEventHandle, uint32_t value);</div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno">  608</span> </div>
<div class="line"><a id="l00618" name="l00618"></a><span class="lineno">  618</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#ga117fda02be14d7344c32d80a16a16776">xTraceEventAdd16</a>(TraceEventHandle_t xEventHandle, uint16_t value);</div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno">  619</span> </div>
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno">  629</span>traceResult <a class="code hl_define" href="group__trace__event__apis.html#ga848f7f80ed87213c0c1d9f74bed0dba5">xTraceEventAdd8</a>(TraceEventHandle_t xEventHandle, uint8_t value);</div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno">  630</span> </div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno">  631</span><span class="preprocessor">#else </span><span class="comment">/* ((TRC_CFG_USE_TRACE_ASSERT) == 1) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno">  632</span> </div>
<div class="line"><a id="l00642" name="l00642"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#ga3d104209d01e4e1ac2fce7a1c7ebfa69">  642</a></span><span class="preprocessor">#define xTraceEventGetSize(pvAddress, puiSize) (*(uint32_t*)(puiSize) = sizeof(TraceEvent0_t) + (TRC_EVENT_GET_PARAM_COUNT(((TraceEvent0_t*)(pvAddress))-&gt;EventID)) * sizeof(uint32_t), TRC_SUCCESS)</span></div>
<div class="line"><a id="l00643" name="l00643"></a><span class="lineno">  643</span> </div>
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#ga55e1fd2058f3507101ac46238cfe350d">  658</a></span><span class="preprocessor">#define xTraceEventGetRawData TRC_EVENT_GET_RAW_DATA</span></div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno">  659</span> </div>
<div class="line"><a id="l00674" name="l00674"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#gae0399574efecfbcdb1d92aa176c597f4">  674</a></span><span class="preprocessor">#define xTraceEventGetPayload TRC_EVENT_GET_PAYLOAD</span></div>
<div class="line"><a id="l00675" name="l00675"></a><span class="lineno">  675</span> </div>
<div class="line"><a id="l00685" name="l00685"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#gac2fe59add1d55f013879ee7d88503f25">  685</a></span><span class="preprocessor">#define xTraceEventPayloadRemaining TRC_EVENT_PAYLOAD_REMAINING</span></div>
<div class="line"><a id="l00686" name="l00686"></a><span class="lineno">  686</span> </div>
<div class="line"><a id="l00696" name="l00696"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#ga7664fb00364a4a1165dc23074ef698bc">  696</a></span><span class="preprocessor">#define xTraceEventPayloadUsed TRC_EVENT_PAYLOAD_USED</span></div>
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno">  697</span> </div>
<div class="line"><a id="l00707" name="l00707"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#gaf49b771de784ae6be526dcd1b851d77e">  707</a></span><span class="preprocessor">#define xTraceEventPayloadSize TRC_EVENT_PAYLOAD_SIZE</span></div>
<div class="line"><a id="l00708" name="l00708"></a><span class="lineno">  708</span> </div>
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno">  709</span><span class="comment">/* Adds a pointer as event payload with no errors checks */</span></div>
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno">  710</span><span class="preprocessor">#define xTraceEventAddPointer TRC_EVENT_ADD_POINTER</span></div>
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno">  711</span> </div>
<div class="line"><a id="l00721" name="l00721"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#ga441b595058d45b79be4fe6e7ea4f1507">  721</a></span><span class="preprocessor">#define xTraceEventAddUnsignedBaseType TRC_EVENT_ADD_UNSIGNED_BASE_TYPE</span></div>
<div class="line"><a id="l00722" name="l00722"></a><span class="lineno">  722</span> </div>
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#ga12fc28f1cd94b5167e0c1c541e2bc123">  732</a></span><span class="preprocessor">#define xTraceEventAdd32 TRC_EVENT_ADD_32</span></div>
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno">  733</span> </div>
<div class="line"><a id="l00743" name="l00743"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#ga117fda02be14d7344c32d80a16a16776">  743</a></span><span class="preprocessor">#define xTraceEventAdd16 TRC_EVENT_ADD_16</span></div>
<div class="line"><a id="l00744" name="l00744"></a><span class="lineno">  744</span> </div>
<div class="line"><a id="l00754" name="l00754"></a><span class="lineno"><a class="line" href="group__trace__event__apis.html#ga848f7f80ed87213c0c1d9f74bed0dba5">  754</a></span><span class="preprocessor">#define xTraceEventAdd8 TRC_EVENT_ADD_8</span></div>
<div class="line"><a id="l00755" name="l00755"></a><span class="lineno">  755</span> </div>
<div class="line"><a id="l00756" name="l00756"></a><span class="lineno">  756</span><span class="preprocessor">#endif </span><span class="comment">/* ((TRC_CFG_USE_TRACE_ASSERT) == 1) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00757" name="l00757"></a><span class="lineno">  757</span> </div>
<div class="line"><a id="l00760" name="l00760"></a><span class="lineno">  760</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00761" name="l00761"></a><span class="lineno">  761</span>}</div>
<div class="line"><a id="l00762" name="l00762"></a><span class="lineno">  762</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00763" name="l00763"></a><span class="lineno">  763</span> </div>
<div class="line"><a id="l00764" name="l00764"></a><span class="lineno">  764</span><span class="preprocessor">#endif </span><span class="comment">/* (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00765" name="l00765"></a><span class="lineno">  765</span> </div>
<div class="line"><a id="l00766" name="l00766"></a><span class="lineno">  766</span><span class="preprocessor">#endif </span><span class="comment">/* (TRC_USE_TRACEALYZER_RECORDER == 1) */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00767" name="l00767"></a><span class="lineno">  767</span> </div>
<div class="line"><a id="l00768" name="l00768"></a><span class="lineno">  768</span><span class="preprocessor">#endif </span><span class="comment">/* TRC_EVENT_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga112f4b8cbcbe510c9d07db9b90dc620c"><div class="ttname"><a href="group__trace__event__apis.html#ga112f4b8cbcbe510c9d07db9b90dc620c">xTraceEventAddData</a></div><div class="ttdeci">traceResult xTraceEventAddData(TraceEventHandle_t xEventHandle, const TraceUnsignedBaseType_t *const puxData, TraceUnsignedBaseType_t uxSize)</div><div class="ttdoc">Adds data to event payload.</div><div class="ttdef"><b>Definition:</b> trcEvent.c:512</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga117fda02be14d7344c32d80a16a16776"><div class="ttname"><a href="group__trace__event__apis.html#ga117fda02be14d7344c32d80a16a16776">xTraceEventAdd16</a></div><div class="ttdeci">#define xTraceEventAdd16</div><div class="ttdoc">Adds an uint16_t as trace event payload.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:743</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga12fc28f1cd94b5167e0c1c541e2bc123"><div class="ttname"><a href="group__trace__event__apis.html#ga12fc28f1cd94b5167e0c1c541e2bc123">xTraceEventAdd32</a></div><div class="ttdeci">#define xTraceEventAdd32</div><div class="ttdoc">Adds an uint32_t as trace event payload.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:732</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga3d104209d01e4e1ac2fce7a1c7ebfa69"><div class="ttname"><a href="group__trace__event__apis.html#ga3d104209d01e4e1ac2fce7a1c7ebfa69">xTraceEventGetSize</a></div><div class="ttdeci">#define xTraceEventGetSize(pvAddress, puiSize)</div><div class="ttdoc">Gets trace event size.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:642</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga441b595058d45b79be4fe6e7ea4f1507"><div class="ttname"><a href="group__trace__event__apis.html#ga441b595058d45b79be4fe6e7ea4f1507">xTraceEventAddUnsignedBaseType</a></div><div class="ttdeci">#define xTraceEventAddUnsignedBaseType</div><div class="ttdoc">Adds an unsigned base type value as trace event payload.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:721</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga55e1fd2058f3507101ac46238cfe350d"><div class="ttname"><a href="group__trace__event__apis.html#ga55e1fd2058f3507101ac46238cfe350d">xTraceEventGetRawData</a></div><div class="ttdeci">#define xTraceEventGetRawData</div><div class="ttdoc">Gets trace event data pointer with an offset.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:658</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga5fcbd638f23ebbe7d9a4447d0338beca"><div class="ttname"><a href="group__trace__event__apis.html#ga5fcbd638f23ebbe7d9a4447d0338beca">xTraceEventCreate2</a></div><div class="ttdeci">traceResult xTraceEventCreate2(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2)</div><div class="ttdoc">Creates an event with 2 parameters.</div><div class="ttdef"><b>Definition:</b> trcEvent.c:127</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga63f12da033faf0f4de4ef2755d73b308"><div class="ttname"><a href="group__trace__event__apis.html#ga63f12da033faf0f4de4ef2755d73b308">xTraceEventCreate0</a></div><div class="ttdeci">traceResult xTraceEventCreate0(uint32_t uiEventCode)</div><div class="ttdoc">Creates an event with 0 parameters.</div><div class="ttdef"><b>Definition:</b> trcEvent.c:54</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga676dd9f79556a3343072b14fac51af1d"><div class="ttname"><a href="group__trace__event__apis.html#ga676dd9f79556a3343072b14fac51af1d">xTraceEventCreate1</a></div><div class="ttdeci">traceResult xTraceEventCreate1(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1)</div><div class="ttdoc">Creates an event with 1 parameters.</div><div class="ttdef"><b>Definition:</b> trcEvent.c:89</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga7664fb00364a4a1165dc23074ef698bc"><div class="ttname"><a href="group__trace__event__apis.html#ga7664fb00364a4a1165dc23074ef698bc">xTraceEventPayloadUsed</a></div><div class="ttdeci">#define xTraceEventPayloadUsed</div><div class="ttdoc">Gets the amount of used trace event payload.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:696</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga7c11b915f0ac18234c3bd2dd7be8610a"><div class="ttname"><a href="group__trace__event__apis.html#ga7c11b915f0ac18234c3bd2dd7be8610a">xTraceEventCreate6</a></div><div class="ttdeci">traceResult xTraceEventCreate6(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2, TraceUnsignedBaseType_t uxParam3, TraceUnsignedBaseType_t uxParam4, TraceUnsignedBaseType_t uxParam5, TraceUnsignedBaseType_t uxParam6)</div><div class="ttdoc">Creates an event with 6 parameters.</div><div class="ttdef"><b>Definition:</b> trcEvent.c:289</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_ga848f7f80ed87213c0c1d9f74bed0dba5"><div class="ttname"><a href="group__trace__event__apis.html#ga848f7f80ed87213c0c1d9f74bed0dba5">xTraceEventAdd8</a></div><div class="ttdeci">#define xTraceEventAdd8</div><div class="ttdoc">Adds an uint8_t as trace event payload.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:754</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_gaadf63a13e25292a1c96330dae5e520b6"><div class="ttname"><a href="group__trace__event__apis.html#gaadf63a13e25292a1c96330dae5e520b6">xTraceEventCreate4</a></div><div class="ttdeci">traceResult xTraceEventCreate4(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2, TraceUnsignedBaseType_t uxParam3, TraceUnsignedBaseType_t uxParam4)</div><div class="ttdoc">Creates an event with 4 parameters.</div><div class="ttdef"><b>Definition:</b> trcEvent.c:206</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_gac2fe59add1d55f013879ee7d88503f25"><div class="ttname"><a href="group__trace__event__apis.html#gac2fe59add1d55f013879ee7d88503f25">xTraceEventPayloadRemaining</a></div><div class="ttdeci">#define xTraceEventPayloadRemaining</div><div class="ttdoc">Gets the amount of remaining trace event payload.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:685</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_gad64822d442e36ad8b008462994442e11"><div class="ttname"><a href="group__trace__event__apis.html#gad64822d442e36ad8b008462994442e11">xTraceEventCreate3</a></div><div class="ttdeci">traceResult xTraceEventCreate3(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2, TraceUnsignedBaseType_t uxParam3)</div><div class="ttdoc">Creates an event with 3 parameters.</div><div class="ttdef"><b>Definition:</b> trcEvent.c:166</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_gae0399574efecfbcdb1d92aa176c597f4"><div class="ttname"><a href="group__trace__event__apis.html#gae0399574efecfbcdb1d92aa176c597f4">xTraceEventGetPayload</a></div><div class="ttdeci">#define xTraceEventGetPayload</div><div class="ttdoc">Gets trace event payload pointer with an offset.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:674</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_gaebde2bb91d01e7cc4e0c1adac58d46c4"><div class="ttname"><a href="group__trace__event__apis.html#gaebde2bb91d01e7cc4e0c1adac58d46c4">xTraceEventCreate5</a></div><div class="ttdeci">traceResult xTraceEventCreate5(uint32_t uiEventCode, TraceUnsignedBaseType_t uxParam1, TraceUnsignedBaseType_t uxParam2, TraceUnsignedBaseType_t uxParam3, TraceUnsignedBaseType_t uxParam4, TraceUnsignedBaseType_t uxParam5)</div><div class="ttdoc">Creates an event with 5 parameters.</div><div class="ttdef"><b>Definition:</b> trcEvent.c:247</div></div>
<div class="ttc" id="agroup__trace__event__apis_html_gaf49b771de784ae6be526dcd1b851d77e"><div class="ttname"><a href="group__trace__event__apis.html#gaf49b771de784ae6be526dcd1b851d77e">xTraceEventPayloadSize</a></div><div class="ttdeci">#define xTraceEventPayloadSize</div><div class="ttdoc">Gets trace event payload size.</div><div class="ttdef"><b>Definition:</b> trcEvent.h:707</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="trcEvent_8h.html">trcEvent.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
